#include <iostream>
using namespace std;

int main()
{
	int j = 0;
	int t = 0;
	int head = 35;
	int foot = 94;
	j = (4 * head - foot) / 2;
	t = head -j;
	cout << t << " " << j << endl; 
	return 0;
}
